package br.com.lazyprogrammer.worldsoccermanager.util;

import java.util.Date;

import android.content.Context;

import br.com.lazyprogrammer.worldsoccermanager.network.model.Stadium;
import br.com.lazyprogrammer.worldsoccermanager.network.model.Team;
import br.com.lazyprogrammer.worldsoccermanager.system.generator.Generator;

public class Creator {
	
	public static Team createTeam(Context context, String fullName, String shortName) {
		String id	= Generator.encodeCustomId(fullName, new Date().getTime(), context.getResources().getConfiguration().locale);
		Team team	= new Team(id, shortName, fullName);
		
		return team;
	}
	
	public static Stadium createStadium(Context context, String name, int capacity, int ticket) {
		String id	= Generator.encodeCustomId(name, new Date().getTime(), context.getResources().getConfiguration().locale);
		Stadium stadium	= new Stadium(id, name, capacity, ticket);
		
		return stadium;
	}

}
